import Vue from 'vue'
export function fetchAccLists() {
    return Vue.axios.post('/supplierSub/supplierSubList.do', {
        pageSize: 99
    })
}
export function fetchSaveAccInfo(opts) {
    return Vue.axios.post('/supplierSub/createSupplierSub.do', {
        telephone: opts.phone,
        email: opts.email,
        citys: opts.cityCode,
        surname: opts.people,
        id: opts.id
    })
}
export function fetchSaveModifyPass(opts) {
    return Vue.axios.post('/supplierSub/modiSubPassword.do', {
        username: opts.acc,
        oldPassword: opts.oldPassword,
        newPassword: opts.newPassword
    })
}
export function fetchSetAccState(opts) {
    return Vue.axios.post('/supplierSub/startStopSupplierSub.do', {
        supplierSubId: opts.id,
        state: opts.state
    })
}
export function fetchCitysLists(opts) {
    return Vue.axios.post('/dict/findCityInfo.do')
}
export function fetchSearchCityByName(cityName) {
    return Vue.axios.post('/dict/findCityByLable.do', {
        name: cityName
    })
}